package yj.scms.goodsapi.pojo;

import javax.persistence.*;
import java.util.Objects;

@Table(name = "t_product_attribute", schema = "kj_fy", catalog = "")
public class ProductAttributeEntity {
    private Long id;
    private Integer productId;
    private Integer attributeId;
    private Integer attributevalueId;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "product_id", nullable = true)
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "attribute_id", nullable = true)
    public Integer getAttributeId() {
        return attributeId;
    }

    public void setAttributeId(Integer attributeId) {
        this.attributeId = attributeId;
    }

    @Basic
    @Column(name = "attributevalue_id", nullable = true)
    public Integer getAttributevalueId() {
        return attributevalueId;
    }

    public void setAttributevalueId(Integer attributevalueId) {
        this.attributevalueId = attributevalueId;
    }


    @Override
    public String toString() {
        return "ProductAttributeEntity{" +
                "id=" + id +
                ", productId=" + productId +
                ", attributeId=" + attributeId +
                ", attributevalueId=" + attributevalueId +
                '}';
    }
}
